package com.gator.spring.framework.webmvc.servlet;

import java.util.Map;

/**
 * @Author PABLO
 * @Date 2022/5/8 13:39
 * @Desc
 */
public class PABLO_ModelAndView {

    //视图名称  如404...
    private String viewName;
    //该视图中需要被替换内容位置的集合
    private Map<String,?> model;

    public PABLO_ModelAndView(String viewName) { this.viewName = viewName; }

    public PABLO_ModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }
    public String getViewName() {
        return viewName;
    }


    public Map<String, ?> getModel() {
        return model;
    }

}
